package com.hqyj.javaSpringBoot.modules.test.service;

import com.github.pagehelper.PageInfo;
import com.hqyj.javaSpringBoot.modules.common.entiy.ResultEntity;
import com.hqyj.javaSpringBoot.modules.common.entiy.SearchBean;
import com.hqyj.javaSpringBoot.modules.test.dao.CityDao;
import com.hqyj.javaSpringBoot.modules.test.entity.City;
import org.springframework.stereotype.Service;

import java.util.List;

public interface CityService {

    /**增加城市信息*/
    ResultEntity<City> insertCity(City city);

    /**通过城市id修改城市名称和省份*/
    ResultEntity<City> updateCity(City city);

    /**根据城市id删除城市*/
    ResultEntity<City> deleteCityByCityId(int cityId);

    /**根据城市id查询城市*/
    City getCityByCityId(int cityId);

    /**根据国家id查询城市*/
    List<City> getCitiesByCountryId(int countryId);

    /**分页模糊查询城市信息*/
    PageInfo<City> getCitiesBySearchBean(SearchBean searchBean);
}
